//define(function(require,exports){

lifeApp.controller('TxCtrl',["$scope","$window","$http", function ($scope,$window,$http) {
          //返回交费选择
          $scope.back = '<a href="#/"><i class="icon-font" title="后退">&#xe61f;</i></a>';

          //场景
          $scope.scene = $window.localStorage.scene ="fee";
          //充值号码和金额
          $scope.mobile = "";
          $scope.charge = "";
          //需要归属地API
          $scope.checkLocation= function(){
              if(/^[135|136|138|139|158|159|185]/.test($scope.mobile)){
                  $scope.mobileType =  "中国移动";
              }else if(/^[130|131|132|186|]/.test($scope.mobile)){
                  $scope.mobileType = "中国联通";
              }else{
                  $scope.mobileType = "中国电信";
              }
          }


          $scope.form = function(){
              alert("未完成提交");
          };
      }]);
//});
